package org.example.x;

import org.example.AbstractStrategyRouter;
import org.example.StrategyHandler;
import org.example.parm.InClass;
import org.example.parm.OutClass;

public class A extends AbstractStrategyRouter<InClass, OutClass>{
    @Override
    protected StrategyMapper<InClass,OutClass> registerStrategyMapper() {
        return (StrategyMapper<InClass, OutClass>) new AMapper();
    }

    public static void main(String[] args) {
        A a = new A();
        InClass inClass = new InClass();
        inClass.setType(1);
        a.applyStrategy(inClass);
    }
}
